<h1>CALENDARIO DE RESERVAS</h1>

<form action="<?php echo url_for('reserva/filtrar'); ?>" method="post">
<table>
 <tbody>
  <?php echo $filtro; ?>
 </tbody>
</table>
<input type="submit" value="BUSCAR" name="filtrar"/>
</form>


<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Fecha</th>
      <th>Personal</th>
      <th>Hora</th>
      <th>Sucursal</th>
      <th>Paciente</th>
      <th>Tipoasistencia</th>
      <th>Confirmado</th>
      <th>Recepcionado</th>
      <th>Observacion</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($gestdent_reserva_list as $gestdent_reserva): ?>
    <tr>
      <td><a href="<?php echo url_for('reserva/show?id='.$gestdent_reserva->getId()) ?>"><?php echo $gestdent_reserva->getId() ?></a></td>
      <td><?php echo $gestdent_reserva->getFecha() ?></td>
      <td><?php echo $gestdent_reserva->getPersonal() ?></td>
      <td><?php echo $gestdent_reserva->getHora() ?></td>
      <td><?php echo $gestdent_reserva->getGestdentSucursal()->getNombre() ?></td>
      <td><?php echo $gestdent_reserva->getGestdentPaciente()->getApellidoPaterno() ?></td>
      <td><?php echo $gestdent_reserva->getTipoasistencia() ?></td>
      <td><?php echo $gestdent_reserva->getConfirmado() ?></td>
      <td><?php echo $gestdent_reserva->getRecepcionado() ?></td>
      <td><?php echo $gestdent_reserva->getObservacion() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('reserva/new') ?>">New</a>
  <a href="<?php echo url_for('reserva/filtrar') ?>">filtrar</a>
  <a href="<?php echo url_for('reserva/ver') ?>">ver</a>
